# -*- coding: utf-8 -*-

from core.viewset import CustomModelViewSet
from core.response import JsonResponse
from apps.rms.models import Interface
from rest_framework.decorators import action
from apps.rms.interface.serializers import *
from apps.rms.interface.resources import *
from apps.rms.interface.filters import *


class InterfaceViewSet(CustomModelViewSet):
    """
    接口管理
    list:查询
    create:新增
    update:修改
    retrieve:单例
    destroy:删除
    """

    queryset = Interface.objects.all()
    serializer_class = InterfaceSerializer
    filterset_class = InterfaceFilterSet
    import_resources = InterfaceResouces
    export_resources = InterfaceResouces
